#ifndef SERVER_H
#define SERVER_H

#include <iostream>
#include <errno.h>
#include <cstdlib>
#include <cstring>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netdb.h>

#include <netinet/in.h>
#include <arpa/inet.h>
#include <sstream>

#include "users.h"
#include "session.h"
#include <vector>
using namespace std;
static Users users;

class Server
{
public:
    Server();
 static void* handleConnection(void* usocket);
    int start();
    int static sendAll(int fhandle, char* buff, long len);
    int static recvAll(int fhandle, char* buff, long len);
    int static fileListUpload(int fhandle,long size);
    int static login(int fhandle, long size);
    int static sendFiles(int fhandle, long size);



private:



};

#endif // SERVER_H
